home *** CD-ROM | disk | FTP | other *** search
/ Internet Warrior 1993 July / Internet Warrior No. 1 July 1993 - Austin Code Works.ISO / tcpip / slip / slip.txt < prev    next >
Encoding:
Text File  |  1993-04-12  |  13.2 KB  |  308 lines

  1. -- begin SLIP.TXT --
  2. Based on my experiences on setting up SLIP under DOS and Windows,  here
  3. are my comments on setting up SLIP in this environment.  I thank the
  4. Trumpet beta testers for their comments.
  5.  
  6. ----------------------------------------------------------------------
  7. Configuring your Modem:
  8.  
  9. a) Turn off DTR (AT&D0&W)
  10.    I have to disable DTR because the communication program that I use
  11.    to dial my SLIP server (QMODEM) drops DTR when I exit the program
  12.    and therefore hangs up the line.  If you use a program like Kermit
  13.    or Conex to establish the SLIP connection, then this need not be done.
  14.    These programs do not necessarily hangup the line when you exit.
  15.  
  16. b) Dial and establish the SLIP connection first.  This can be done
  17.    automatically if you use a program like SLIPDIAL (from the University of
  18.    Minnesota) which will dial and establish a SLIP connection then load the
  19.    SLIP packet driver, unless you use SLIPPER.EXE -- which can be loaded
  20.    in AUTOEXEC.BAT
  21.  
  22.    My modem and several others based on the Rockwell RC144AC V.32bis data-
  23.    pump do not work with current versions of SLIPDIAL.  I therefore use a
  24.    DOS program like QMODEM to dial the SLIP server, and automatically run a
  25.    script file that establishes the SLIP link.
  26.  
  27.    As an alternative to SLIPDIAL, take a look at the PHONE program
  28.    -- also from the University of Minnesota.
  29. ----------------------------------------------------------------------
  30. Configuring the SLIP drivers:
  31.  
  32. There are four main SLIP packet drivers available
  33. CSLIPPER.EXE    Peter Tattam's compressed SLIP driver
  34. SLIPPER.EXE     Peter Tattam's SLIP driver
  35. SLIP8250.COM    Crynwr driver (I like Phil Burn's modified driver)
  36. ETHERSL.COM     Crynwr driver (ethernet simulation over SLIP)
  37.  
  38. Of these four, I vastly prefer C/SLIPPER.EXE over SLIP8250.COM or
  39. ETHERSL.COM for the following reasons:
  40. a) It is much faster even though my modem has just a 16450 UART
  41. b) It supports PKTMUX when used in ethernet simulation mode, and
  42. c) It can simulate ethernet type packet driver (although this doesn't
  43.    work with some applications).
  44.  
  45. Instructions for C/SLIPPER.EXE:
  46. a) Load SLIPPER in your AUTOEXEC.BAT file according to instructions:
  47.    For instance if you have a v.32bis modem on COM1
  48.    slipper com1 vec=62 baud=57600
  49. b) If you use DOS TCP/IP applications in Win 3.1 DOS boxes, then use the
  50.    double-ended packet driver shim WinPKT.COM -- this creates a virtual
  51.    packet driver at 0x60.  DOS applications in native mode, DOS
  52.    applications in Windows 3.1 DOS boxes and Windows applications can all
  53.    use this virtual driver at 0x60.
  54.    winpkt.com 0x60 0x62
  55. c) If you use QVT/Net, load PKTINT.COM next.  QVT/net is configured in
  56.    QVTNET.INI to use the interrupt at 0x60.
  57.    pktint.com
  58.  
  59. Instructions for SLIP8250.COM:
  60. a) Try getting a version 10 SLIP driver.  Philip Burns of Northwestern
  61.    University has a modified SLIP8250.COM driver that is better at hardware
  62.    handshaking.  This driver is distributed along with NuPOP.
  63. b) Load the driver AFTER establishing the SLIP connection.  My modem is a
  64.    V.32bis modem on COM1, so here is how I would load the driver.
  65.    slip8250 -w 0x62 -h 4 SLIP 0x03f8 57600
  66. c) As discussed above if you use DOS TCP/IP applications in Windows 3.x
  67.    DOS boxes, you probably want to use WINPKT.COM
  68.    winpkt.com 0x60 0x62
  69. d) If you use WinQVT/net, load PKTINT.COM
  70.    pktint.com
  71.  
  72. Instructions for ETHERSL.COM:
  73. If you choose to use ETHERSL.COM instead of SLIP8250.COM, the
  74. instructions are exactly the same with one crucial difference.  You
  75. will have to DELETE the line "device=*vcd" from the [386Enh] section
  76. of SYSTEM.INI.  This will interfere with running regular Windows Comm
  77. applications (such as Crosstalk), and you will get lots of dropped
  78. characters etc. in these applications.  This is therefore not
  79. recommended.  ETHERSLIP would be loaded as:
  80.    ethersl -w 0x62 -h 4 0x03f8 57600
  81. ----------------------------------------------------------------------
  82. Configuring Windows 3.1:
  83.  
  84. a) Make the following modifications to the SYSTEM.INI file [386Enh]
  85.    section.
  86.    i) List all your COM ports, with their addresses and interrupts.
  87.        COM1Base=03F8
  88.        COM1Irq=4
  89.        COM2Base=02F8
  90.        COM2Irq=3
  91.        COM3Base=03E8
  92.        COM3Irq=5
  93.        This can also be done from within Windows - Control Panel,
  94.        but double-clicking on the "Ports" icon.
  95.    ii) Give the port to which your modem is attached a generous COM buffer
  96.        COM1Buffer=10000
  97.    iii) Change the COM port AutoAssign value for the COM port that you wish
  98.        to use for your modem to ZERO.  This is the amount of time that
  99.        Windows waits in seconds before handing control of that COM port to
  100.        another application.  If you use WinQVT/net and then want to switch
  101.        from one session to another, and this value is at the default value
  102.        of 2 seconds, you are will get a GPF and Windows will crash.
  103.        COM1AutoAssign=0
  104.        This can also be done from within Windows - Control Panel.
  105.        Double-click on 386 Enhanced, and under "Device Contention", set
  106.        the device contention for the COM port your modem is on to
  107.        "Never Warn"
  108. ----------------------------------------------------------------------
  109. Additional notes:
  110. ----------------------------------------------------------------------
  111. What to do if you are assigned a different IP address for each
  112. SLIP session?
  113.  
  114. I am fortunate in that our campus SLIP server assigns each user
  115. a permanent IP address, so I do not have worry about editing QVTNET.INI
  116. each time that I establish a SLIP connection.
  117.  
  118. If you are assigned a new IP address on every occasion that you dial in,
  119. please try to use BOOTP aware software, and let BOOTP do the
  120. configuration for you.  However, QVTnet is not BOOTP aware and RARP
  121. will not work over a SLIP connection.  To get QVTNet working in a
  122. situation such as this, you must do the following:
  123.  
  124. Edit the QVTNET.INI file.  Let the [net] section look like this:
  125.  
  126. [net]
  127. name=
  128. ip=
  129. netmask=255.255.255.0 (or whatever is appropriate for you)
  130. arptime=20
  131. packet_vector=60 (or whatever is appropriate)
  132.  
  133. Save the changes, and then *write-protect* this file
  134. "attrib +r qvtnet.ini"
  135.  
  136. Start your slip connection, and *remember* the name and IP address
  137. that you are assigned.  Each time you start QVT/net 3.1x, the
  138. general configuration dialog box will open.  Enter the name and
  139. IP address and you were assigned for that session, click on [OK],
  140. and you should be up and running.  The changes you make will not
  141. be saved, as QVTNET.INI is write-protected.
  142.  
  143. A more elegant solution to the problem of dynamic SLIP IP address
  144. assignment is provided by Victor Menayang (victor@ccwf.cc.utexas.edu)
  145. Victor uses the program bootpq to semi-automate qvtnet preparation.
  146. Bootpq is used to inquire the assigned IP, which is then saved to a
  147. file called "myip".  Another file "noip" is essentially a complete
  148. QVTNET.INI file that lacks the IP address.  In the final step "myip"
  149. and "noip" are copied into a single QVTNET.INI file.  An example of
  150. Victor's batch file is provided below:
  151. =====================================================
  152. slipper com2
  153. pktint.com
  154. bootpq -i "ip=\"%%s\""  >> myip
  155. bootpq -i "My IP# is: %s"
  156. copy /q net + myip + noip e:\com\qvtnet\qvtnet.ini
  157. del /q myip
  158. @echo off
  159. echo .
  160. echo Ready to run WinQVTnet
  161. =====================================================
  162. For questions and more details about bootpq, please contact Victor
  163. Menayang (victor@ccwf.cc.utexas.edu)
  164.  
  165. The next version of QVTnet (version 3.2) is very likely to be BOOTP
  166. capable.
  167. ----------------------------------------------------------------------
  168. How do you use PKTMUX over SLIP?
  169.  
  170. PKTMUX will not work over the SLIP8250.COM packet driver, and crashes
  171. immediately if used with ETHERSL.COM
  172.  
  173. PKTMUX will work with C/SLIPPER.EXE, when C/SLIPPER is used in ethernet
  174. simulation mode.  An example of this configuration is shown below:
  175.  
  176. [from AUTOEXEC.BAT]
  177.  
  178. lh c/slipper com1 vec=62 baud=57600 ether         (packet driver)
  179. lh pktmux 3 62 /3       (pktmux loaded for 3 virtual packet drivers)
  180. pktdrv 7f 62            (first virtual packet driver used for QVT/net)
  181. lh pktint.com           (QVT/net pktint.com)
  182.  
  183. Additional virtual packet drivers can be loaded directly from within
  184. Windows 3.1 DOS boxes.  For example, my PIF file to load POPmail is
  185. directed to the file "popmail.bat".  This is what popmail.bat reads
  186. like:
  187.  
  188. pktdrv 60 62            loads a virtual packet driver at 0x60
  189. cd \popmail
  190. popmail
  191. cd \
  192. pktdrv 60 /u            unloads the packet driver at 0x60
  193. exit                    causes the DOS window to close
  194.  
  195. I have similar batch files that load other DOS TCP/IP applications
  196. like Trumpet for DOS.  It is my experience that PKTMUX works fine
  197. even if the virtual packet drivers in two independent virtual DOS
  198. sessions, are loaded at the same software interrupt.  For example
  199. within two different DOS boxes -- one for POPmail and the other for
  200. Trumpet, the virtual packet driver (pktdrv) is loaded at 0x60 in each
  201. instance.
  202. ----------------------------------------------------------------------
  203. How much does PKTMUX degrade the performance of C/SLIPPER?
  204.  
  205. I have a V.32bis/V.42bis modem in a 386-33 running Windows 3.1 with
  206. a reasonably fast video card (ATI Graphics Ultra).  Under these
  207. conditions, when I have three virtual packet drivers loaded and
  208. being used as follows:
  209. a) Driver at 0x7f -- QVTNet FTP client session
  210. b) Driver at 0x60 in one DOS Window -- CUTCP tn3270 session
  211. c) Driver at 0x60 in another DOS Window -- Trumpet for DOS
  212.  
  213. I get FTP transfer rates of 0.7 - 0.8 kb/sec while transferring
  214. compressed files.  This rate is comparable to that which I get with
  215. SLIP8250 loaded as a packet driver, and where a single TCP/IP session
  216. is active.  If CSLIPPER is used a packet driver and a single session
  217. is active, I get transfer rates of 1.0 - 1.4 kb/sec on the same
  218. files.
  219.  
  220. While there is about 40% degradation in the performance of SLIPPER,
  221. for me the benefits of being able to use PKTMUX outweigh the
  222. performance hit.
  223. ----------------------------------------------------------------------
  224. C/SLIPPER and ethernet simulation mode
  225.  
  226. In ethernet simulation mode, C/SLIPPER ver 1.3 works with all the
  227. applications that I have tested it with.  One or two applications
  228. that required ethernet simulation balked at C/SLIPPER 1.2, but even
  229. these rare problems have been resolved with ver 1.3
  230.  
  231. When SLIPPER is used in ethernet simulation mode, and used with PKTMUX,
  232. I get some an error message in the QVTNet Console window that reads
  233. "IP:incorrect packet type" or "IP:bad version number".  This does not
  234. seem to prevent QVTnet from functioning, although I cannot comment on
  235. loss of performance.
  236. ----------------------------------------------------------------------
  237. What can you do if your DOS TCP/IP application does not work with
  238. C/SLIPPER in ethernet simulation mode?
  239.  
  240. In the rare event that you find a package that does not work with
  241. C/SLIPPER in ethernet simulation mode, first contact the author --
  242. Peter Tattam -- PETER@psychnet.psychol.utas.edu.au, and let him
  243. know.  Chances are that he can fix it.
  244.  
  245. In the meanwhile, you can try the following.  I do not know if it is
  246. kosher, but it worked when I had problems with C/SLIPPER ver 1.2
  247.  
  248. (C/SLIPPER is loaded at 0x62 as described above under the PKTMUX section)
  249.  
  250. I load ETHERSL.COM at 0x60, run the application and then terminate
  251. ETHERSL.COM
  252.  
  253. This also works within Windows 3.1 virtual DOS boxes.  However a
  254. packet driver like ETHERSL can be used in only one virtual DOS box
  255. at a time.
  256.  
  257. So for example, here is my batch file to run Grateful Med (a
  258. medical reference retrieval program developed at the National Library
  259. of Medicine).
  260.  
  261. ethersl -w 0x60 -h 4 0x03f8 57600       loads ETHERSLIP
  262. cd \gm6
  263. search
  264. cd \
  265. termin 0x60                             terminates ETHERSLIP
  266. exit            closes the DOS box and returns me to Windows
  267.  
  268. If you use this method, be cautious about one thing -- don't have
  269. any active PKTMUX DOS sessions open at the same time.  After closing
  270. the ETHERSL window, you can run your PKTMUX DOS sessions with no
  271. problem.  BTW, the example above -- Grateful Med, works with no
  272. problems with C/SLIPPER ver 1.3
  273. ----------------------------------------------------------------------
  274. Where to Get What.....
  275.  
  276. Peter Tattam's programs are archived at ftp.utas.edu.au (C/SLIPPER, 
  277. and the Trumpet set of programs).
  278.  
  279. WinQVT/net is generally archived at most Windows FTP sites, 
  280. including ftp.cica.indiana.edu
  281.  
  282. NCSA Telnet is archived at ftp.ncsa.uiuc.edu
  283.  
  284. NuPOP is archived at ftp.acns.nwu.edu
  285.  
  286. POPmail/PC, SLIPDISK, PHONE, and PC Gopher are archived at 
  287. boombox.micro.umn.edu
  288. ----------------------------------------------------------------------
  289.  
  290.  
  291. To summarize for WinQVT/net:
  292. a) Start the SLIP connection
  293. b) Load the packet drivers (if SLIP8250.COM / ETHERSL.COM)
  294.    C/SLIPPER.EXE can be loaded in AUTOEXEC.BAT
  295. c) Load WinPKT.COM
  296. d) Load PKTINT.COM
  297. e) Load Windows
  298.  
  299. This setup works with every TCP/IP application that I have tossed at it
  300. including NuPOP, POPmail/PC, NCSA Telnet, CUTCP, WinQVT/net, the complete
  301. Trumpet suite of applications.
  302.  
  303. For more information and you comments contact me at:
  304. ashok@biochemistry.cwru.edu
  305.  
  306. Ashok
  307. -- end SLIP.TXT --
  308.